import { createApp } from "vue"
import App from "./components/GlobalProperties.vue"
const app = createApp(App)
//相当于定义一个属性名叫$appName,值是My App,
//一旦在globalProperties定义了此属性，那么就可以在任何的组件实例上访问这些属性
app.config.globalProperties.$appName = 'My App';
app.config.globalProperties.$logger = (message)=>{
  console.log(message);
}
app.mount("#app")